Setting Access Control at the Client Level |
|
You can set access control on objects and attributes to determine how they are displayed on the client interface or the UI. Access control on objects is set using the onDisplay event listener, whereas access control on attributes is set using the onDisplay _<Attribute Name> event listener.
The following access modes are set on objects and attributes to control their display:
- Read-only
- Read-write
- Hide
Access Control on Objects
To set access control on objects, you can invoke the listener either implicitly or explicitly. However, when you invoke the listener in both ways, precedence is given to implicit listeners.
To invoke the listener implicitly, use the ObjectAccessEvent event in the onDisplay method.
To invoke the listener explicitly, register a class that implements the IObjectDisplayListener interface, and use the onObjectDisplay method
Access Control on Attributes
To set access control on attributes, you can invoke the listener either implicitly or explicitly. However, when you invoke the listener in both ways, precedence is given to implicit listeners.
To invoke the listener implicitly, use the AttributeAccessEvent event in the onDisplay_<Attribute Name> method.
To invoke the listener explicitly, register a class that implements the IAttributeDisplayListener interface, and use the onAttributeDisplay method .